package com.bbs.detai1713.dao;

import com.bbs.detai1713.model.RegisterInformation;
import com.bbs.detai1713.model.Role;
import com.bbs.detai1713.model.UpdateInformation;
import com.bbs.detai1713.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper {
    int register(RegisterInformation registerInformation);
    int updateInformation(UpdateInformation updateInformation);
    User loadUserByUsername(String username);
    Role getUserRolesByRoleid(int roleId);
}
